package com.yxq.mdt.app.modules.market.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * @author L
 * @time 2019-10-24
 * @describe 商城首页商品分页数据$
 */
public class MallGoodsBean extends MallListBean implements MultiItemEntity {

    /**
     * row_count : 1
     * page_count : 1
     * list : [{"id":1,"name":"","price":1,"original_price":1,"pic_url":"","num":1,"virtual_sales":1,"unit":"","is_negotiable":"0","sales":""}]
     */

    private int row_count;
    private int page_count;
    private List<ListBean> list;

    @Override
    public int getItemType() {
        return MallListBean.MALL_ITEM_TYPE_GOODS;
    }

    public int getRow_count() {
        return row_count;
    }

    public void setRow_count(int row_count) {
        this.row_count = row_count;
    }

    public int getPage_count() {
        return page_count;
    }

    public void setPage_count(int page_count) {
        this.page_count = page_count;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * id : 1
         * name :
         * price : 1
         * original_price : 1
         * pic_url :
         * num : 1
         * virtual_sales : 1
         * unit :
         * is_negotiable : 0
         * sales :
         */

        private long id;
        private String name;
        private float price;
        private float original_price;
        private String pic_url;
        private long num;
        private long virtual_sales;
        private String unit;
        private String is_negotiable;
        private String sales;

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public float getPrice() {
            return price;
        }

        public void setPrice(float price) {
            this.price = price;
        }

        public float getOriginal_price() {
            return original_price;
        }

        public void setOriginal_price(float original_price) {
            this.original_price = original_price;
        }

        public String getPic_url() {
            return pic_url;
        }

        public void setPic_url(String pic_url) {
            this.pic_url = pic_url;
        }

        public long getNum() {
            return num;
        }

        public void setNum(long num) {
            this.num = num;
        }

        public long getVirtual_sales() {
            return virtual_sales;
        }

        public void setVirtual_sales(long virtual_sales) {
            this.virtual_sales = virtual_sales;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getIs_negotiable() {
            return is_negotiable;
        }

        public void setIs_negotiable(String is_negotiable) {
            this.is_negotiable = is_negotiable;
        }

        public String getSales() {
            return sales;
        }

        public void setSales(String sales) {
            this.sales = sales;
        }


    }
}
